﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="BrowerConfideAdmin.aspx.cs" Inherits="www.Admin.BrowerConfideAdmin" %>
<%@ Import Namespace="www.Controllers" %>

<%@ Register TagPrefix="FCKeditorV2" Namespace="FredCK.FCKeditorV2" Assembly="FredCK.FCKeditorV2, Version=2.6.3.30006, Culture=neutral, PublicKeyToken=4f86767c9b519a06" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript">

        function CheckAllEmp(checkbox) {
            var gridVwHeaderChckbox = document.getElementById("<%=grid_PostConfide.ClientID %>");
            for (i = 1; i < gridVwHeaderChckbox.rows.length; i++) {
                gridVwHeaderChckbox.rows[i].cells[0].getElementsByTagName("INPUT")[0].checked = checkbox.checked;
            }
        }

    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
    <div class="title">
        QUẢN LÝ MỤC DUYỆT TIN TỨC / TÂM SỰ / TRUYỆN
    </div>
    <div class="clear">
    </div>
    <%--<asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>--%>
    <div id="pnviews" runat="server">
        <div class="rows">
            <div class="ColLeft">
                <span id="Span6">Nhân viên:</span>
            </div>
            <div class="ColRight">
                <asp:DropDownList ID="ddlStaff" runat="server" CssClass="combobox" AutoPostBack="True" OnSelectedIndexChanged="ddlStaff_SelectedIndexChanged"></asp:DropDownList>
            </div>
        </div>
        <div class="rows">
            <div class="ColLeft">
                <span id="Span2">Danh mục:</span>
            </div>
            <div class="ColRight">
                <asp:DropDownList ID="ddlCategory1" runat="server" CssClass="combobox" AutoPostBack="True" OnSelectedIndexChanged="ddlgroups_SelectedIndexChanged"></asp:DropDownList>
            </div>
        </div>
        <div class="rows">
            <div class="ColLeft">
                <span id="Span5">Ngôn ngữ:</span>
            </div>
            <div class="ColRight">
                <asp:DropDownList ID="ddlLanguage" runat="server" CssClass="combobox" AutoPostBack="True" OnSelectedIndexChanged="ddlgroups_SelectedIndexChanged"></asp:DropDownList>
            </div>
        </div>
        <div class="clear"></div>
        <div class="frame ">
            <div class="table">
                <img src="../Design/Icon/icon/delete.png" class="control" />
                <asp:LinkButton ID="lbtdel1" runat="server" OnClick="lbtdel_Click">Xóa</asp:LinkButton>
                <img src="../Design/Icon/icon/refresh.png" class="control" />
                <asp:LinkButton ID="lbtrefresh1" runat="server" OnClick="lbtrefresh_Click">Làm tươi</asp:LinkButton>
                <img src="../Design/Icon/icon/uplevel.png" class="control" />
                <a href="javascript:void(0);" onclick="window.history.go(-1);">Trở lại</a>
            </div>
            <div>
                <asp:GridView ID="grid_PostConfide" runat="server" AutoGenerateColumns="False" BackColor="White"
                    BorderColor="#3366CC" BorderStyle="None" BorderWidth="1px" Width="100%" AllowPaging="True"
                    PageSize="20" ShowHeaderWhenEmpty="True" OnRowCommand="grid_advertise_RowCommand" OnPageIndexChanging="grid_advertise_PageIndexChanging" OnRowDataBound="grid_PostConfide_RowDataBound">
                    <Columns>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                <input id="chkselectall" type="checkbox" runat="server" onclick="CheckAllEmp(this);" />
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:CheckBox ID="chkselect" runat="server" />
                                <asp:Label ID="lblId" runat="server" Text='<%#Eval("Id") %>' Visible="False"></asp:Label>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                Tiêu đề
                            </HeaderTemplate>
                            <ItemTemplate>
                                <%#Eval("Name") %>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                Hình ảnh
                            </HeaderTemplate>
                            <ItemTemplate>
                                <img src='../<%#Eval("Image") %>' style="position: relative; height: 70px; width: 100%;" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                Thứ tự UT
                            </HeaderTemplate>
                            <ItemTemplate>
                                <%#Eval("Priority") %>
                            </ItemTemplate>
                            <HeaderStyle Width="5%"></HeaderStyle>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                Ngày đăng
                            </HeaderTemplate>
                            <ItemTemplate>
                                <%#Convert.ToDateTime(Eval("Date")).ToShortDateString() %>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                Người duyệt
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:Label ID="lblUserId" runat="server" Text=' <%#Eval("UserBrower") %>' Visible="False"></asp:Label>
                                <asp:Label ID="lblUserName" runat="server" Text=""></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                <span id="lblStatus">Trạng thái</span>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <span id="lbltt"><%# Utilities.Active(Convert.ToInt32(Eval("Active"))) %></span>
                            </ItemTemplate>
                            <HeaderStyle Width="10%"></HeaderStyle>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                <span id="lblBusiness">Thao tác</span>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:ImageButton ID="ibtdel" runat="server" ToolTip='Xóa' CssClass="business" CommandName="cmd_delete"
                                    CommandArgument='<%#Eval("Id")+"_"+ Eval("Languagecode") %>' ImageUrl="../Design/Icon/icon/delete.png" />

                                <asp:LinkButton ID="lbtDetail" CommandName="cmd_Detail" CommandArgument='<%#Eval("Id")+"_"+ Eval("Languagecode") %>' runat="server">Chi tiết</asp:LinkButton>
                            </ItemTemplate>
                            <HeaderStyle Width="14%"></HeaderStyle>
                        </asp:TemplateField>
                    </Columns>
                    <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
                    <HeaderStyle BackColor="#003399" Font-Bold="True" ForeColor="#CCCCFF" />
                    <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />
                    <RowStyle BackColor="White" ForeColor="#003399" />
                    <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
                    <SortedAscendingCellStyle BackColor="#EDF6F6" />
                    <SortedAscendingHeaderStyle BackColor="#0D4AC4" />
                    <SortedDescendingCellStyle BackColor="#D6DFDF" />
                    <SortedDescendingHeaderStyle BackColor="#002876" />
                </asp:GridView>
            </div>
            <div class="table">
                <img src="../Design/Icon/icon/delete.png" class="control" />
                <asp:LinkButton ID="lbtdel2" runat="server" OnClick="lbtdel_Click">Xóa</asp:LinkButton>
                <img src="../Design/Icon/icon/refresh.png" class="control" />
                <asp:LinkButton ID="lbtrefress2" runat="server" OnClick="lbtrefresh_Click">Làm tươi</asp:LinkButton>
                <img src="../Design/Icon/icon/uplevel.png" class="control" />
                <a href="javascript:void(0);" onclick="window.history.go(-1);">Trở lại</a>
            </div>
        </div>
    </div>
    <div id="pncontrols" runat="server" visible="False">
        <div class="table">
            <img src="../Design/Icon/icon/page_save.png" class="control" />
            <asp:LinkButton ID="lbtsave1" runat="server" OnClick="lbtsave_Click">Lưu</asp:LinkButton>
            <img src="../Design/Icon/icon/delete.png" class="control" />
            <asp:LinkButton ID="lbtdel3" runat="server" OnClick="lbtdel2_Click">Xóa</asp:LinkButton>
            <img src="../Design/Icon/icon/back.png" class="control" />
            <asp:LinkButton ID="lbtback1" runat="server" OnClick="lbtback_Click">Trở lại</asp:LinkButton>
        </div>
        <div class="frame">
            <div class="rows">
                <div class="ColLeft">
                    <span id="Span1">Danh mục:</span>
                </div>
                <div class="ColRight">
                    <select id="ddlCategory" runat="server" class="combobox"></select>
                </div>
            </div>
            <div class="rows">
                <div class="ColLeft">
                    <span id="lblName">Tiêu đề:</span>
                </div>
                <div class="ColRight">
                    <input id="txtname" type="text" runat="server" class="textbox" />
                </div>
            </div>
            <div class="rows">
                <div class="ColLeft">
                    <span id="Span4">Hình ảnh:</span>
                </div>
                <div class="ColRight">
                    <input id="fuUpload" type="file" runat="server" class="textbox" />
                </div>
            </div>
            <div class="rows">
                <div class="ColLeft">
                    <span id="lblkeyword">Từ khóa:</span>
                </div>
                <div class="ColRight">
                    <input id="txtKeyword" type="text" runat="server" class="textbox" />
                </div>
            </div>
            <div class="textarial">
                <div class="ColLeft">
                    <span id="lblNoiDung">Tóm tắt:</span>
                </div>
                <div class="ColRight">
                    <textarea id="txtdecription" runat="server" class="textarea2"></textarea>
                </div>
            </div>
            <div class="content">
                <div class="ColLeft">
                    <span id="Span3">Chi tiết:</span>
                </div>
                <div class="ColRight">
                    <FCKeditorV2:FCKeditor ID="txtDetail" runat="server" Width="99%" Height="350px"></FCKeditorV2:FCKeditor>
                </div>
            </div>
            <div class="rows">
                <div class="ColLeft">
                    <span id="lblSapXep">Thứ tự:</span>
                </div>
                <div class="ColRight">
                    <input id="txtord" type="text" class="textbox" runat="server" />
                </div>
            </div>
            <div class="rows">
                <div class="ColLeft">
                    <span id="lblTrangThai">Trạng thái:</span>
                </div>
                <div class="ColRight">
                    <input id="chkactive" type="checkbox" runat="server" class="checkbox" />
                </div>
            </div>
        </div>
        <div class="table">
            <img src="../Design/Icon/icon/page_save.png" class="control" />
            <asp:LinkButton ID="lbtsave2" runat="server" OnClick="lbtsave_Click">Lưu</asp:LinkButton>
            <img src="../Design/Icon/icon/delete.png" class="control" />
            <asp:LinkButton ID="LinkButton1" runat="server" OnClick="lbtdel2_Click">Xóa</asp:LinkButton>
            <img src="../Design/Icon/icon/back.png" class="control" />
            <asp:LinkButton ID="lbtback2" runat="server" OnClick="lbtback_Click">Trở lại</asp:LinkButton>
        </div>
    </div>
    <div id="pnLink" runat="server" visible="False">
        <span id="lblMessageLink" runat="server"></span>
    </div>
    <%--</ContentTemplate>
    </asp:UpdatePanel>--%>
</asp:Content>
